package cn.duxiaod.demo.thread;

/**
 * 2.实现Runnable创建线程
 */
public class MyThreadTest2 implements Runnable{
    @Override
    public void run() {
        System.out.println(Thread.currentThread());
    }

    public static void main(String[] args) {
        new Thread(new MyThreadTest2()).start();
        new Thread(new MyThreadTest2()).start();
        new Thread(new MyThreadTest2()).start();
    }
}
